{extend name="rom/index" /}
{block name="content"}
<div class="admin-biaogelist">
	
    <div class="listbiaoti am-cf">
      <ul class="am-icon-flag on"> 栏目名称</ul>
      
      <dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > <a href="#">方法列表</a></dl>
      
      <dl>
        <a class="btn btn-primary" href="/admin/node/add"><b>添加方法</b></a>
      </dl>
      
      
    </div>
    <form class="am-form am-g" style="float: left;">
         <table class="am-table am-table-bd am-table-striped admin-content-table">
            <thead>
            <tr>
              <th><a href="/admin/node/add" class='btn btn-primary' style='color:#fff;'>添加</a></th>
            </tr>
            <tr>
             <th  class="text-center">ID</th><th  class="text-center">功能</th><th  class="text-center">控制器</th><th  class="text-center">方法</th><th  class="text-center">管理</th>
            </tr>
            </thead>
            <tbody>
             {volist name='data' id='vo'}
            <tr>
            <td  class="text-center">{$vo.id}</td>
            <td  class="text-center">{$vo.name}</td>
            <td  class="text-center">{$vo.controller}</td>
            <td  class="text-center">{$vo.node}</td>
            <td  class="text-center">
                <div class="am-dropdown" data-am-dropdown>
                  <button class="am-btn am-btn-default am-btn-xs am-dropdown-toggle" data-am-dropdown-toggle><span class="am-icon-cog"></span> <span class="am-icon-caret-down"> </span></button>
                  <ul class="am-dropdown-content">
                 
                
                    <li><a data-toggle="modal" data-target="#myModal{$i}">1.删除账号</a></li>
                    <li><a href="{:url('Node/edit',['id'=>$vo.id])}">2.编辑</a></li>
             
                  </ul>
                </div>
            </td>
            </tr>
        <!-- Modal -->
                        <div class="modal fade" id="myModal{$i}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
                          <div class="modal-dialog" role="document" style="margin-top:80px">
                            <div class="modal-content">
                              <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                <h4 class="modal-title" id="myModalLabel">消息提醒</h4>
                              </div>
                              <div class="modal-body">
                               你确定要删除?
                              </div>
                              <div class="modal-footer">
                                <button type="button" class="btn btn-default"><a href="{:url('Node/delete',['id'=>$vo.id])}">确定</a></button>
                                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                              </div>
                            </div>
                          </div>
                        </div>
        
            {/volist}
           
            </tbody>
           
          </table>
      
          
          
        
      
        </form>
    {$page}
   
 <style>
        .modal-content{z-index:3000;}
        .modal-backdrop{z-index:-100;}
    </style>
 
 
 {/block}
<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>
</body>
</html>